#ifndef __MESSAGEROTATIONTIMER_H_
#define __MESSAGEROTATIONTIMER_H_

#include "ariba/ariba.h"
#include "ariba/utility/system/Timer.h"
#include "../AribaNode.h"

using namespace ariba;
using ariba::utility::Timer;
using std::string;

class AribaNode;

class MessageRotationTimer: public Timer {
	use_logging_h(MessageRotationTimer)

public:
	MessageRotationTimer( AribaNode* _parent );
	virtual ~MessageRotationTimer();
	bool getRightFlag();
	bool getLeftFlag();
	void setRightFlag(bool up);
	void setLeftFlag(bool down);
	bool isFlagSet(bool upDown);
	void setFlag(bool upDown);
	bool getFlag();
	void clearFlag(bool upDown);

protected:
	virtual void eventFunction();
	AribaNode* app;

private:
	bool right;
	bool left;
};

#endif // __MESSAGEROTATIONTIMER_H_
